import {
	dept
} from '@/api/customApi';

// 442864853551416544 顶层 447759831718167808
export async function deptFn(Parent = [], id = "447759831718167808") {
	let res = await dept(id)
	Parent.push(...res);
	for (let i = 0, len = res.length; i < len; i++) {
		if (res[i].exitChilren) {
			await deptFn(res[i].children, res[i].node_id)
		}
	}
	return Parent
}